<template>
	<section>
		 <el-row>
			 <procdef-list-for-simple-start ref="procdefListForStart"  :params="filters.params" @closeTab="closeTab"></procdef-list-for-simple-start>
		</el-row>
	</section>
</template>

<script>
	import util from '@/common/js/util';//全局公共库
	import config from '@/common/config';//全局公共库  
	
	import ProcdefListForSimpleStart from '@/views/mdp/workflow/re/procdef/ProcdefListForSimpleStart';//全局公共库  
	import { mapGetters } from 'vuex' 

	export default {
		name:'ProcdefListForFormDataStart',
	    computed: {
		    ...mapGetters([
		      'userInfo'
		    ]), 
		},
		data() {
			return {
				paramsStr:'',
				filters: { 

					params:{
						mainTitle:'xxxxxxx',
						mainContext:'xxxx',
						bizUrl:'',//前端跳转  //自带参数，建议只带主键
						bizKey:'company_regit',//用于选中流程模型并原样输出到restUrl
						restUrl:'xxxxxxxx',//后端接口同步
						formId:'',//form 表单编号
						formDataId:'',//form表单对应的数据
						extVars:{ //不用提交给工作流的变量池 
						},
						flowVars:{//提交进流程实例变量的变量池,flowVars所有变量将post方式推送回restUrl指定的地址

						}

					}
				}, 
				/**end 自定义属性请在上面加 请加备注**/
			}
		},//end data
		methods: {
			 
			  closeTab(){
				  this.$store.dispatch('delVisitedViews', this.$route)
				  this.$router.back(-1);
			  }
			
		},//end methods
		components: {  
			//在下面添加其它组件
			ProcdefListForSimpleStart
		},
		activated:function(){ 
			
			if(this.$route.query && this.$route.query.params){
				let paramsJsonStr=this.$route.query.params;

				this.paramsStr=paramsJsonStr;
				let params= JSON.parse(decodeURIComponent(paramsJsonStr))
				this.filters.params=params;

				/** 传过来的参数格式
				let extVars={formDataIds:[row.id],formId:row.formId}
				let jsonExtVars=JSON.stringify(extVars); 
				let params={ 
						mainContext:'',
						mainTitle:'',
						bizUrl:process.env.BASE_API+config.getFormBasePath()+'/#/mdp/form/formData/FormDataMng?extVars='+jsonExtVars,
						extVars:extVars
				}
				let jsonParmas=encodeURIComponent(JSON.stringify(params));//对方要 decodeURIComponent
				this.$router.push({path:'/mdp/workflow/ru/execution/ExecutionMngForFormData',query:{params:jsonParmas}});
				 */
				 
			} 
		},
		mounted() { 
		}
	}

</script>

<style scoped>

  
.filters-show {
	margin-left: 20px;
	margin-top: 10px;
	margin-bottom: 0px;
}
.filters-label { 
	font-size: 14px;
	color:black;
	font-weight: bold;
}
</style>